package com.csun.cmny.provider.model.dto.disinfectionPosition;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class EverydayDisinfectionRecordSaveDto {

    //楼栋编号
    @NotEmpty(message = "{sanitation.budingNo.null}")
    private String buildingNo;

    //消毒日期
    @NotNull(message = "{disinfectionEveryday.disinfectionDate.null}")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date disinfectionDate;

    //消毒位置id集合
    @NotNull(message = "{disinfectionEveryday.positionId.null}")
    private List<Long> positionIds;
}
